<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.cchar演示</title>
<script type="text/javascript" src="../../1st.js"></script>
<script type="text/javascript" src="../../1st.cchar.js"></script>
</head>
<body>
<textarea rows="15" cols="120" id="text">
中国皇后头发 先后恭喜发财
</textarea>
<br />
<button onclick="otext.value=F.gb2big(otext.value);">简体到繁体</button>
<button onclick="otext.value=F.big2gb(otext.value);">繁体到简体</button>

&#12288;<input type="text" /><input type="button" value="笔划查询" onclick="getbh(this.previousSibling.value)" />
&#12288;<input type="text" /><input type="button" value="拼音查询" onclick="getpy(this.previousSibling.value)" />

<script type="text/javascript">
var otext = F('text').node;

F.js(F.path+"stroknum.js");
F.js(F.path+"pinyin.js");

function getbh(cstr){
	cstr.split('').each(function(s){
		alert('“'+s+'”的笔划数是:'+F.strokenum(s));
	})
}

function getpy(cstr){
	var a = cstr.split("").map(F.pinyin).join(" ");
	alert(a);
}
</script>
</body>
</html>